package gui;

import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.Vector;
import javax.swing.JLabel;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class GridBagWindow extends JPanel
{
   
    GridBagConstraints d_gridbagconstraints;
    
    Vector<JLabel []> d_playerlabels;

    
    public GridBagWindow()
    {
        d_playerlabels = new Vector<JLabel []>();
        
        
        d_gridbagconstraints = new GridBagConstraints();
        setLayout(new GridBagLayout());

    }    
    
    protected void addComponentToPane(Component component, int x , int y, int w)
    {
        d_gridbagconstraints.fill = GridBagConstraints.HORIZONTAL;
        d_gridbagconstraints.weightx = w;
        d_gridbagconstraints.gridwidth = 1;
        d_gridbagconstraints.gridx = x;
        d_gridbagconstraints.gridy = y;     
        add(component, d_gridbagconstraints);
    }
}


